import { Router, Route, Switch } from 'dva/router';
import CountApp from "./routes/CounterApp";
import SecondPage from "./routes/SecondPage";

function RouterConfig({ history }) {
  // console.log(history)
  return (
    <Router history={history}>
      <Switch>
        <Route path="/" exact component={CountApp} />
        <Route path="/secondpage" exact component={SecondPage} />
      </Switch>
    </Router>
  );
}

export default RouterConfig;
